package com.ebraga.trackerclub.android.manager.service;

import com.ebraga.trackerclub.android.dao.api.RankingDao;
import com.ebraga.trackerclub.android.dao.service.RankingServiceDao;
import com.ebraga.trackerclub.android.manager.core.RankingManagerImpl;
import com.ebraga.trackerclub.android.util.api.AndroidContext;
import com.ebraga.trackerclub.android.util.core.DataAccessObjectImpl;

public class RankingServiceManager extends RankingManagerImpl {

	public RankingServiceManager(AndroidContext context) {
				
		String enviroment = System.getProperty("Enviroment");
		
		if ( enviroment == null || !enviroment.equals("UNIT_TEST") ) {
			
			super.setRankingDao(new RankingServiceDao  (new DataAccessObjectImpl(context)));			
		}
	}
	
	public void setRankingDao (RankingDao rankingDao){
		super.setRankingDao (rankingDao);
	}		
}
